@media only screen and (max-width: 320px) {
    html {
        font-size: 50px;
    }
}

@media only screen and (min-width: 321px) and (max-width: 360px) {
    html {
        font-size: 56.25px;
    }
}

@media only screen and (min-width: 361px) and (max-width: 375px) {
    html {
        font-size: 58.59px;
    }
}

@media only screen and (min-width: 376px) and (max-width: 400px) {
    html {
        font-size: 62.5px;
    }
}

@media only screen and (min-width: 401px) and (max-width: 414px) {
    html {
        font-size: 64.68px;
    }
}

@media only screen and (min-width: 415px) and (max-width: 640px) {
    html {
        font-size: 100px;
    }
}

@media only screen and (min-width: 640px) {
    html {
        font-size: 100px;
    }
}

body {
    font-size: 16px;
}

* {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    display: block;
}

html,
body {
    width: 100%;
    height: 100%;
}

.header {
    width: 100%;
    height: 0.88rem;
    position: absolute;
    left: 0;
    top: 0;
    background: #e4366b;
}

.header .title {
    height: 0.88rem;
    text-align: center;
    line-height: 0.88rem;
    font-size: 0.38rem;
    color: #fff;
}

.tabs {
    width: 100%;
    height: 0.98rem;
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    background: #484850;
}

.tabs li {
    flex: 1;
    position: relative;
}

.tabs a {
    height: 0.93rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    color: #fffffd;
    margin-top: 0.05rem;
}

.tabs li.active:before {
    display: block;
    content: '';
    width: 100%;
    height: 0.05rem;
    background: #e4366b;
    position: absolute;
    left: 0;
    top: 0;
}

.content {
    position: absolute;
    left: 0;
    width: 100%;
    top: 0.88rem;
    bottom: 0.98rem;
    overflow: hidden;
}

.content .banner {
    width: 100%;
    height: 2.51rem;
    background: yellowgreen;
}

.content .banner img {
    width: 100%;
}

.content .list .item {
    height: 2.22rem;
    width: 100%;
    padding: 0.22rem 0.5rem 0.27rem 0.15rem;
    display: flex;
    box-sizing: border-box;
    position: relative;
    border-bottom: 1px solid #ddd;
}

.content .item .item-img {
    width: 1.74rem;
    height: 1.74rem;
}

.content .item .item-img img {
    width: 80%;
}

.content .item .item-content {
    flex: 1;
    margin-left: 0.16rem;
}

.content .item .item-content h3 {
    line-height: 0.4rem;
    font-size: 0.28rem;
    color: #000000;
    font-weight: 600;
}

.content .item .item-content .price {
    font-size: 0.3rem;
    color: #f42a74;
    line-height: 0.42rem;
    font-weight: bolder;
}

.content .item .item-content .delPrice {
    position: absolute;
    right: 3rem;
    bottom: 1.25rem;
    font-size: 0.2rem;
    color: #bdbbbc;
    text-decoration: line-through;
    font-weight: bolder;
}


.content .item .item-content .discount {
    font-size: 0.24rem;
    color: #000000;
    font-weight: bold;
    line-height: 0.5rem;
}

.content .item .button {
    position: absolute;
    right: 0.5rem;
    bottom: 0.37rem;
    width: 1.18rem;
    height: 0.52rem;
    background: #e63569 url(../img/shopping.png) no-repeat center;
    background-size: 0.41rem 0.36rem;
    border-radius: 0.15rem;
    text-align: center;
    line-height: 0.52rem;
    color: #fff;
}

.search-bar {
    width: 100%;
    height: 0.9rem;
    background: #52525a;
    padding-left: 0.2rem;
    padding-top: 0.18rem;
}

.search-bar input {
    width: 5.17rem;
    height: 0.56rem;
    background: #ffffff url(../img/search.png) no-repeat 0.28rem 0.12rem;
    background-size: 0.34rem 0.38rem;
    padding-left: 0.75rem;
    border-radius: 0.6rem;
    outline: none;
}

.tab.cart {
    position: relative;
}

.tab.cart .gou {
    width: 0.24rem;
    height: 0.24rem;
    border-radius: 50%;
    background: #e4366b;
    position: absolute;
    font-size: 0.1rem;
    color: #ffffff;
    text-align: center;
    line-height: 0.24rem;
    right: 0.18rem;
    top: 0.09rem;
}

/*上下拉刷新样式*/
.head, .foot {
    text-align: center;
    height: 50px;
    line-height: 50px;
    font-size: 12px;
    background: #ffffff;
}

.head img {
    width: 20px;
    height: 20px;
    display: inline-block;
    transform: translateY(4px) rotate(180deg);
    transition: transform 200ms;
}

.foot img {
    width: 20px;
    height: 20px;
    display: inline-block;
    transform: translateY(4px) rotate(0deg);
    transition: transform 200ms;
}

.head.up img {
    transform: translateY(4px) rotate(0deg);
}

.foot.down img {
    transform: translateY(4px) rotate(180deg);
}


.moreline {
    word-break: break-all;
    line-height: 0.4rem;
    overflow: hidden;
    text-overflow: ellipsis;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}